-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use declared_licenses instead of licenses (detected) #465
use declared_licenses instead of licenses (detected) #465
Conversation
Fix for the test failures is here: #466 |
Detected licenses are, in my opinion, much more valuable than declared licenses. If people really care about licensing, they need to care about what's really in the code, not what upstream declares. What's the reason behind this change? |
@msrb - I guess it was already discussed to use declared licenses. cc @krishnapaparaju Please let us know if there is any change. |
@miteshvp yeah, I remember that we discussed how to go about ecosystems for which we won't have detected licenses, because artifacts are only available in binary form (.NET for example). On the other hand, libraries in Golang usually don't have any manifest files so most of them won't have any declared license. We take licenses reported by GitHub and we have detected licenses. |
@msrb looks like a cabal agenda. Adding it |
[test] |
@miteshvp Your image is available in the registry: |
Good idea, thanks 😉 |
@miteshvp what's the plan here? you want to merge this now, or you want to wait for the cabal? |
let's wait for the cabal. Thanks. |
FWIW, ScanCode progressively also detects (and will provide a normalized license expression) for the "declared license". I call these "asserted" but that the same. https://github.com/nexB/scancode-toolkit/blob/275-streamline-package-manifests-models/src/packagedcode/models.py#L509 Also on the topic of Windows DLLs, there are two things there:
@msrb you also wrote:
I could not agree more, but both are worth IMHO. But in some areas such as NPMs that I think defaults to have an ISC license when none is set, there is a huge amount of discrepancies in these cases between the "declared" license as found in a package.json or regsitry API call and the actual license detected in the code. |
Thanks @pombredanne for a detailed comment. It really helps and will consider NPM case accordingly. |
Also related: fabric8-analytics/fabric8-analytics-license-check#9 (we don't use this tool anymore, but in this issue we were also discussing the same topic) |
So, @msrb - we discussed this in cabal and we will go with |
Currently we show detected
licenses
on OSIO dashboard and license scoring also uses detected licenses to calculate stack license. It should be modified to usedeclared_licenses
.